home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / carcase.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  1KB  |  35 lines

  1. /* CARCASE.H   Carcase is a set of borders of different types
  2.    0 - no border, 1 - first type and so on. Width of every side of
  3.    border (in pixels) showed in area[border_type].
  4.    Some files CARCASE?.* may be used to realize different sets of
  5.    carcases.
  6. */
  7.  
  8. #ifndef __CARCASE_H_
  9. #define __CARCASE_H_
  10.  
  11. #include "graphpp.h"
  12. #include "colors.h"
  13.  
  14. enum BORDERS { NO_BORDER, STANDART_BORDER, BUTTON_BORDER, HILITE_BORDER,
  15.            PRESS_BORDER, SHOW_BORDER }; // types of borders - may be
  16.                    // expanded
  17. #define NONE rect(0, 0, 0, 0)
  18. #define STANDART rect(6, 6, 6, 6)
  19. #define BUTTON rect(2, 2, 2, 2)
  20. #define HILITE rect(2, 2, 2, 2)
  21. #define PRESS rect(2, 2, 2, 2)
  22. #define SHOW  rect(6, 6, 6, 6)
  23.  
  24. // Keeps width of borders of all types.
  25. // From program you will call area[border_type].
  26. static rect area[] = { NONE, STANDART, BUTTON, HILITE, PRESS, SHOW };
  27.  
  28.  
  29. struct Carcase
  30.     {
  31.     void show(BORDERS b_type, rect coordinates, int s = 0);
  32.          //    Coordinates are given in pixels - not in text cells
  33.     };
  34.  
  35. #endif __CARCASE_H_